package com.matrix.gallery.ui.wallpaper.fragment

import android.view.LayoutInflater
import com.matrix.basecore.base.BaseFragment
import com.matrix.basecore.utils.glide.GlideUtil
import com.matrix.gallery.databinding.PreviewFragmentBinding

class PreviewFragment(url: String) : BaseFragment<PreviewFragmentBinding>() {

    private var mUrl = url
    override fun getViewBinding(): PreviewFragmentBinding {
        return PreviewFragmentBinding.inflate(layoutInflater)
    }

    override fun initView(inflater: LayoutInflater) {
        GlideUtil.loadImage(
            mUrl,
            context,
            mViewBinding.photoView,
            false
        )
    }
}